import Api from '../Api'
import {controller,post,get} from "../../../decorator/decorator";
import {ALL_TASKS,RECEIVED_TASKS,TASK_DETAIL,RECEIVE_TASK,CHECK_SHOP,TASK_SUBMIT,SUBMIT_EVALUATE} from '../../../common/config/url'
@controller('/buyertask')
class TaskApi extends Api{
  constructor(){
    super(TaskApi);
  }
  @get(ALL_TASKS)
  async allTasks(params){
    return await this.common(params)
  }
  async task(params){
    return await this.common(params)
  }
  @get(RECEIVED_TASKS)
  async receivedTask(params){
    return await this.common(params)
  }
  @get(TASK_DETAIL)
  async taskDetail(params){
    return await this.common(params)
  }
  @get(RECEIVE_TASK)
  async receiveTask(params){
    return await this.common(params)
  }
  @get(CHECK_SHOP)
  async checkShop(params){
    return await this.common(params)
  }
  @post(TASK_SUBMIT)
  async taskSubmit(params){
    return await this.common(params)
  }
  @post(SUBMIT_EVALUATE)
  async submitEvaluate(params){
    return await this.common(params)
  }

}
export default new TaskApi()
